package org.numb.core.base;

public class LocalOuter {

    public static void main(String[] args) {
        final Object a = new Object() ;
        Object b = new Object();
        class Inner{
            // 不能有static与属性
            private void test() {
                // 只能访问final对象a
                System.out.println(a);
            }
        }
        // b重新赋值，否则可能会将b优化为final
        b = new Object();
    }

}
